// 文件练习
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
public class Deom8 {
    public static void main(String[] args) throws IOException {
        //创建文件流对象，即打开文件夹
        InputStream inputStream=new FileInputStream("./text2.txt");
        while(true){
            int c=inputStream.read();
            if(c==-1){
                break;
            }
            System.out.printf("0x%x\n",c);
        }
    }
}
